import axios from 'axios'
import langData from '@/data/index'

export default () => {
  const enData = {}
  const zhData = {}
  langData.forEach(({ name, chineseName }) => {
    const lang = `erp.financial.${name}`
    zhData[lang] = chineseName
    enData[lang] = name
  })
  return axios.post('/api/file', { enData, zhData })
}
